package ${package.ReqVoPackage};

<#list table.importPackages as pkg>
import ${pkg};
</#list>
<#if swagger2>
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.yingxin.yx.framework.commons.dto.PageIn;
</#if>
<#if entityLombokModel>
import lombok.Data;
import lombok.EqualsAndHashCode;
    <#if chainModel>
import lombok.experimental.Accessors;
    </#if>
</#if>
import java.util.Date;

/**
 * <p>
 * ${table.comment!}
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
<#if entityLombokModel>
@Data
    <#if superQueryVoClass??>
@EqualsAndHashCode(callSuper = true)
    <#else>
@EqualsAndHashCode(callSuper = false)
    </#if>
    <#if chainModel>
@Accessors(chain = true)
    </#if>
</#if>
<#if table.convert>
<#-- @TableName("${table.name}") -->
</#if>
<#if swagger2>
@ApiModel(value="${QueryVo}对象", description="${table.comment!}")
</#if>
<#if superQueryVoClass??>
public class ${QueryVo} extends ${superQueryVoClass}<#if activeRecord><${QueryVo}></#if> {
<#elseif activeRecord>
public class ${QueryVo} extends Model<${QueryVo}> {
<#else>
public class ${QueryVo} implements Serializable {
</#if>

<#if entitySerialVersionUID>
    private static final long serialVersionUID = 1L;
</#if>
<#-- ----------  BEGIN 字段  ---------->

<#list table.fields as field>
    <#if field.comment!?length gt 0>
        <#if swagger2>
            <#if field.propertyName == "creatorId">
            <#elseif field.propertyName == "creatorName" >
            <#elseif field.propertyName == "createTime" >
            <#elseif field.propertyName == "updaterId" >
            <#elseif field.propertyName == "updaterName" >
            <#elseif field.propertyName == "updateTime" >
            <#elseif field.propertyName == "delFlag" >
            <#else>
                <#if field.customMap??>
                    <#list field.customMap?keys as key>
                    <#if key == "qc" >
    @ApiModelProperty(value = "${field.comment}")
                    </#if>
                    </#list>
                </#if>
            </#if>
        <#else>
            /**
            * ${field.comment}
            */
        </#if>
    </#if>
    <#if field.propertyName == "creatorId">
    <#elseif field.propertyName == "creatorName" >
    <#elseif field.propertyName == "createTime" >
    <#elseif field.propertyName == "updaterId" >
    <#elseif field.propertyName == "updaterName" >
    <#elseif field.propertyName == "updateTime" >
    <#elseif field.propertyName == "delFlag" >
    <#else>
        <#if field.customMap??>
            <#list field.customMap?keys as key>
            <#if key == "qc" >
    private ${field.propertyType} ${field.propertyName};

            </#if>
            </#list>
        </#if>
    </#if>
</#list>

<#------------  END 字段  ---------->

<#if !entityLombokModel>
    <#list table.fields as field>
        <#if field.propertyType == "boolean">
            <#assign getprefix="is"/>
        <#else>
            <#assign getprefix="get"/>
        </#if>
    public ${field.propertyType} ${getprefix}${field.capitalName}() {
        return ${field.propertyName};
    }

    <#if chainModel>
    public ${QueryVo} set${field.capitalName}(${field.propertyType} ${field.propertyName}) {
    <#else>
    public void set${field.capitalName}(${field.propertyType} ${field.propertyName}) {
    </#if>
        this.${field.propertyName} = ${field.propertyName};
        <#if chainModel>
        return this;
        </#if>
    }
    </#list>
</#if>

<#if entityColumnConstant>
    <#list table.fields as field>
    public static final String ${field.name?upper_case} = "${field.name}";

    </#list>
</#if>
<#if activeRecord>
    @Override
    protected Serializable pkVal() {
    <#if keyPropertyName??>
        return this.${keyPropertyName};
    <#else>
        return null;
    </#if>
    }

</#if>
<#if !entityLombokModel>
    @Override
    public String toString() {
        return "${QueryVo}{" +
    <#list table.fields as field>
        <#if field_index==0>
            "${field.propertyName}=" + ${field.propertyName} +
        <#else>
            ", ${field.propertyName}=" + ${field.propertyName} +
        </#if>
    </#list>
        "}";
    }
</#if>
}
